from django.urls import path
from . import views
from . import wx_views
urlpatterns = [
    path(
        'report/<int:pk>', views.ReportViewSet.as_view({'get': 'retrieve', 'put': 'update'}), name='report'),
    path(
        'report/', views.ReportViewSet.as_view({'post': 'create', 'get': 'list'}), name='report'),

    path(r'report/compare_report_code', views.compare_report_code),

    # 生成报告，导出pdf
    path(r'report/gen_base/<str:uuid_string>', views.generateBaseReport),
    # 返回报告内容pdf
    path(r'report/get_content_pdf', views.getContentPdf),
    # 返回报告封面pdf
    path(r'report/get_cover_pdf', views.getCoverPdf),
    # 返回报告完整pdf
    path(r'report/get_whole_pdf', views.getWholePdf),
    # 上传报告模板
    path(r'report/model/upload', views.uploadModel),
    path(r'report/model/upload_by_yida', views.uploadModelByYida),
    # 打印财务清单
    path(r"report/model/print_by_model/<str:uuid_string>", views.print_by_model),
    path(r'report/model/test_model/<str:uuid_string>', views.test_render),
    path(r'get_user_id_by_tel', views.get_user_id_by_tel),
    path(r'bind_user_tel', views.bind_user_tel),

    path(r'get_report_detail',views.get_report_detail), #防伪验证
    path(r'verify',wx_views.verify), #防伪验证

    path(r'view_signed_file', views.view_signed_file),
    path(r'create_digital_sign_order',
         views.create_digital_sign_order),
    
    path(r'create_digital_sign_order_daily_paper',
         views.create_digital_sign_order_daily_paper),
    # 人脸识别页面
    path(r'face_success', views.face_success),
]

